﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL.BussinessClass;
using Model;
namespace AlltrustDinner.Pages.Admin
{
    public partial class UserManagement : PageBase
    {
        public UserManagement()
        {
            
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                UserBiz biz = new UserBiz();
                List<USER> list = biz.GetUserList();
                this.rpt_user_list.DataSource = list;
                this.rpt_user_list.DataBind();
            }

        }

        protected void imgBtn_search_Click(object sender, ImageClickEventArgs e)
        {
            USER user = new USER();
            user.ID = this.ipt_user_id.Value.Trim();
            user.NAME = this.ipt_user_name.Value.Trim();
            user.RIGHT = -1;
            UserBiz biz = new UserBiz();
            List<USER> list = biz.GetUserList(user);
            this.rpt_user_list.DataSource = list;
            this.rpt_user_list.DataBind();
        }
    }
}